package 剑指Offer1;

public class _44二进制中1的个数 {
    public int hammingWeight(int n) {
        int res = 0;
        for(int i=0;i<32;i++){
            if((n&(1<<i))!=0){
                res++;
            }
        }
        return res;
    }

    public static void main(String[] args) {
        System.out.println(1<<0);
    }
}
